package cn.com.klun.tjy.other.redisTest;

import org.apache.commons.pool2.impl.GenericObjectPoolConfig;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;

public class JedisPoolTest {
    public static void main(String[] args) {
        GenericObjectPoolConfig poolConfig = new GenericObjectPoolConfig();
        JedisPool jedisPool = new JedisPool();


        Jedis jedis = null;
        try{
            jedis = jedisPool.getResource();
            jedis.get("hello");
        }catch (Exception e){

        }finally {
            if(jedis != null){
                jedis.close();
            }
        }

        // jmx 功能？
    }

}
